// ts 类型系统
// 1. 布尔
const bool: boolean = true
const bool1: boolean = false
// 2. 字符串
const str: string = '12345'
const str1: string = "abcd"
const str2: string = `1234567`
// 3. 数字
const num: number = 12345
// 4. object
const obj: object = {}
// 5. 数组
const arr: number[] = [1, 2, 3, 4, 5]
const arr1: (boolean | number)[] = [true, false, 1]
// 6. 元组 Tuple
// 元组是特殊的数组， 数组长度为2
const t1: [boolean, number] = [true, 123]
// 7. 枚举
enum Color {
	Red, 
	Yellow,
	Blue,
	Oranage,
	Green
}

console.log(Color.Red)
console.log(Color[0])
// Color.Red  => 0
// Color[0] => 'Red'